home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / pmode / exc_dx02 / makefile < prev    next >
Encoding:
Makefile  |  1994-10-25  |  1.1 KB  |  67 lines

  1.  
  2. C_ENV = 1
  3. # define C_ENV = 1 for Borland C++ 4.0+, using HighC libs
  4. #             or 2 MetaWare High C 3.0+
  5. #             or 3 Watcom 32-bit C/C++, not tested
  6.  
  7.  
  8. !if $(C_ENV) == 1
  9.   CC = bcc32 -c -u-
  10.   AS = tasm /mx
  11. !endif
  12.  
  13. !if $(C_ENV) == 2
  14.   CC = hc386 -c -g
  15.   AS = 386asm -twocase -lnum
  16. !endif
  17.  
  18. !if $(C_ENV) == 3
  19.   CC = wcl386 -c
  20.   AS = tasm /mx
  21. !endif
  22.  
  23. CORE = exc_0.obj exc_1.obj uasm.obj
  24. all  : except.lnk demo_1.exp demo_2.exp demo_3.exp
  25. core : $(CORE)
  26.  
  27. .asm.obj:
  28.    $(AS) $*.asm
  29.  
  30. .c.obj:
  31.    $(CC) {$*.c }
  32.  
  33. demo_1.exp: $(CORE) demo_1.obj
  34.    386link demo_1 @except.lnk
  35.  
  36.  
  37. demo_2.exp: $(CORE) demo_2.obj hr_timer.obj
  38.    386link demo_2,hr_timer @except.lnk
  39.  
  40.  
  41. demo_3.exp: $(CORE) demo_3.obj
  42.    386link demo_3 @except.lnk
  43.  
  44. except.lnk: makefile
  45.   copy &&|
  46.    #
  47.    # edit to point to your libs
  48.    #
  49.    exc_0,exc_1,uasm
  50.    -libpath \dosx\lib;\hc\lib
  51.    -lib hc386,hcsoft,dosx32
  52.    -nostub
  53.    -pack
  54.    -unprivileged
  55.    -symbols
  56.    -purge none *
  57.    -mapnames 30
  58.    -mapwidth 132
  59.    -fullseg
  60.    -publist both
  61. | except.lnk
  62.  
  63.  
  64. zip: demo_1.exp demo_2.exp demo_3.exp
  65.     pkzip exc_dx02 -x*.obj -x*.map -x*.lst
  66.  
  67.